﻿using BCCommon.TMS.Transport;
using BCDto.TMS.MallInterface;
using BCEntity.TMS.MallInterface.MallOrder;

namespace BCService.TMS.MallInterface.MallOrder
{
    public interface IMallOrderService
    {
        /// <summary>
        /// 添加商城订单
        /// </summary>
        /// <param name="mallOrderDto"></param>
        void Add(MallOrderDto mallOrderDto);
        void CreateOrder(MallOrderConfirmDto mallOrderConfirmDto);

        /// <summary>
        /// 更新商城订单的拆分信息
        /// </summary>
        /// <param name="mallOrderNo"></param>
        /// <param name="agentBranchesConfigId"></param>
        /// <returns></returns>
        MallOrderEntity UpdateOrderSpilt(string mallOrderNo, long agentBranchesConfigId);

        /// <summary>
        /// 更新商城订单运输业务类型
        /// </summary>
        /// <param name="mallOrderNo"></param>
        /// <param name="transportBusinessType"></param>
        /// <returns></returns>
        MallOrderEntity UpdateOrderTransportBusinessType(string mallOrderNo, TransportBusinessType transportBusinessType);
        MallOrderEntity UpdateOrderTransportCost(string mallOrderNo, string transportCost);
        MallOrderEntity UpdateOrderTransportOrderNo(string mallOrderNo, string transportOrderNo);
    }
}